import request from '@/utils/request'

// 查询入职信息列表
export function listEntryInfo(query) {
  return request({
    url: '/employee/entryInfo/list',
    method: 'get',
    params: query
  })
}

// 查询入职信息详细
export function getEntryInfo(entryId) {
  return request({
    url: '/employee/entryInfo/' + entryId,
    method: 'get'
  })
}

// 新增入职信息
export function addEntryInfo(data) {
  return request({
    url: '/employee/entryInfo',
    method: 'post',
    data: data
  })
}

// 修改入职信息
export function updateEntryInfo(data) {
  return request({
    url: '/employee/entryInfo',
    method: 'put',
    data: data
  })
}

// 删除入职信息
export function delEntryInfo(entryId) {
  return request({
    url: '/employee/entryInfo/' + entryId,
    method: 'delete'
  })
}
